
const fourKCompany = require('./4000_company.json')
const oneWCompany = require('./h3_company_info.json')
// fourKCompany

fourKCompany.forEach(item => {
  const found = oneWCompany.find(subItem => subItem.dz === item['办公地址'] || item['企业名称'] === subItem.qymc)
  if (found) {
    found.building = item['企业入驻楼宇']
  }
})

var fs = require('fs')
const str = JSON.stringify(oneWCompany)
fs.writeFile('./result.json', str, function(err, data) {
  console.log(err)
})
